package com.foreknow.dao;

import com.foreknow.bean.Admin;
import com.foreknow.bean.Guestbook;

import java.sql.SQLException;
import java.util.List;

public interface GuestbookDao {
    /**
     * 查询所有留言信息
     * @return
     * @throws SQLException
     */
    public List<Object> getQueryAll()throws SQLException;

    /**
     * 添加信息
     * @return
     * @throws SQLException
     */
    public boolean addMessage(Guestbook guestbook) throws SQLException;

    /**
     * 根据id删除
     * @param id
     * @return
     * @throws SQLException
     */
    public boolean deleteById(Integer id) throws SQLException;

    /**
     * 根据id修改
     * @param id
     * @return
     * @throws SQLException
     */
   public boolean updateById(Integer id) throws SQLException;
}